
const Price = require('./Price')

class Rate {
  constructor () {
    this.priceWeek = new Price()
    this.priceWeekend = new Price()
  }

  setPrices (regular, loyalty, regularWeekend, loyaltyWeekend) {
    this.setPriceWeek(regular, loyalty)
    this.setPriceWeekend(regularWeekend, loyaltyWeekend)
  }

  setPriceWeek (regular, loyalty) {
    this.priceWeek.setRegularPrice(regular)
    this.priceWeek.setLoyaltyPrice(loyalty)
  }

  getPriceWeek () {
    return this.priceWeek
  }

  setPriceWeekend (regular, loyalty) {
    this.priceWeekend.setRegularPrice(regular)
    this.priceWeekend.setLoyaltyPrice(loyalty)
  }

  getPriceWeekend () {
    return this.priceWeekend
  }
}

module.exports = Rate
